package com.ssy.lingxi.purchase.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 订单工作流任务
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-16
 */
@Entity
@Table(schema = "public", name = "pu_process_task",
        indexes = {@Index(name = "pu_process_task_process_key_idx", columnList = "processKey"),
                @Index(name = "pu_process_task_task_id_idx", columnList = "taskId")})
public class PurchaseProcessTask implements Serializable {
    private static final long serialVersionUID = 6389997652402983879L;

    /**
     * 主键Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "pu_process_task_seq")
    @SequenceGenerator(sequenceName = "pu_process_task_seq", name = "pu_process_task_seq", allocationSize = 1)
    private Long id;

    /**
     * 流程的ProcessKey
     */
    @Column(columnDefinition = "varchar(50)")
    private String processKey;

    /**
     * 流程任务Id
     */
    @Column(columnDefinition = "varchar(50)")
    private String taskId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProcessKey() {
        return processKey;
    }

    public void setProcessKey(String processKey) {
        this.processKey = processKey;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
}
